import React from 'react';
import {
  View,
  Text,
  TouchableOpacity,
} from 'react-native';

import Config from '../../config';
import SizeUtils from '../../common/SizeUtils';
import Constants from '../../common/Constants';
import PostContentPage from '../post/PostContentPage';

import HeartEndListContentReqAction from '../../actions/heart/HeartEndListContentReqAction';

export default class HeartEndListContentPage extends PostContentPage {
  constructor(props) {
    super(props);

    this._showShoucang = false;
    this._showZan = false;
    this._showShare = false;
    this._showComment = false;
  }

  _renderContent() {
    let height = this.state.height - SizeUtils.translateDesignHeightToCode(76 - 20);
    if(this.state.postData.video_url != "" && this.state.postData.video_url == null
      && this.state.postData.video_url == undefined) {
        height -= SizeUtils.translateDesignHeightToCode(500);
      }
    return (
      <View>
        {this._renderVideoContent()}
        {this._renderWebViewContent()}
      </View>
    )
  }

  _sendRequestDataAction() {
    new HeartEndListContentReqAction().call(this, {board_id:5, post_id:this.props.pageData.routeData.post_id});
  }

  _getModuleType() {
    return Constants.MODULE_TYPE.HEART;
  }
}
